package com.wkbb.sports.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 体质管理
 * hlife_physical_rule
 * @author 惠普
 * @date 2021-01-19 20:35:08
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class PhysicalRuleDto implements Serializable {
    /**
     * 主键id
     */
    private Long id;

    /**
     * 项目ID
     */
    @ApiModelProperty(value = "项目ID")
    private Long physicalId;

    /**
     * 学校ID
     */
    @ApiModelProperty(value = "学校ID")
    private Long orgId;

    @ApiModelProperty(value ="规则排序(1 升序 2降序)")
    private Byte ruleType;

    /**
     * 年级ID
     */
    @ApiModelProperty(value = "年级ID")
    private Long gradeId;

    @ApiModelProperty(value = "年级名称")
    private String gradeName;

    /**
     * 性别(0未知1男2女)
     */
    @ApiModelProperty(value = "性别(0未知1男2女)")
    private Byte sex;

    @ApiModelProperty(value = "权重")
    private double weight;

    /**
     * 状态(0:无效 1:有效)
     */
    @ApiModelProperty(value = "状态(0:无效 1:有效)")
    private Byte status;

    /**
     * 创建人
     */
    private String createUser;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 修改人
     */
    private String updateUser;

    /**
     * 修改时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    private List<PhysicalRuleItemDto> itemDtoList;

    private List<PhysicalRulePlusesDto> plusesList;
}